import Vue from 'vue'
import Vuex from 'vuex'

// 使用Vuex
Vue.use(Vuex)
// 创建Vuex实例
const store = new Vuex.Store({
  state: {
    theme: 'chalk',
    sumInfolubian: [{
        sumTitle: '网安事件总数（条）',
        sumNum: 248,
        sumColor:'rgb(137, 190, 137)',
      },
      {
        sumTitle: '网络宣传推送稿件（篇）',
        sumNum: 3120,
        sumColor:'orange'
      },{
        sumTitle: '网络舆情处理（条）',
        sumNum: 3860,
        sumColor:'yellow'
      },{
        sumTitle: '网络资产统计（件）',
        sumNum: 8250,
        sumColor:'cyan'
      },{
        sumTitle: '新媒体账号（个）',
        sumNum: 20201,
        sumColor:'rgb(137, 190, 137)',
      },
    ],
    parkorder: { 
      data1: [709, 1999, 709, 2299, 3299, 2299, 1999, 2999, 1999, 709, 1999, 709], 
      data2: [1709, 2999, 1799, 3299, 4299, 3299, 2999, 3999, 2999, 1709, 2999, 1709]
    },
    scorlldata:["地区", "网站", "信息系统服务器", "办公互联网", "视频监控系统","公共LED大屏","专线资产","政务外网终端","云计算服务"],
  },
  getters: {

  },
  mutations: {
    changeTheme(state) {
      if (state.theme === 'chalk') {
          state.theme = 'vintage'
      } else {
          state.theme = 'chalk'
      }
  }
  },
  actions: {

  },
})

export default store